package com.ye.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comments implements Serializable {
    private static final long serialVersionUID = 3L;

    private Long commentId;
    private Long musicId;
    private Long parentId;
    private String username;
    private String content;
    private Date date;
    @Transient
    private transient List<Comments> child;
}
